package com.cimr.comm.service;

import com.cimr.comm.bo.OperationBo;

import java.util.List;

/**
 * 操作
 * Created by liqi on 2017/12/20.
 * liqiwork@qq.com
 */
public interface OperationService {
    List<OperationBo> getOperationList();
    List<OperationBo> getOperationListByUserId(String userId);
    List<OperationBo> getOperationListByUsername(String username);
    List<OperationBo> getOperationListByRoleId(String userId);

    OperationBo getOperationById(String id);
    List<OperationBo> getOperationListWithName(String operationName);
    List<OperationBo> getOperationListWithNameByCurrUser(String operationName);
    List<OperationBo> getOperationListByKey(String operationKey);

    int insertOperation(String id,
                          String operationKey,
                          String operationName,
                          String comment,
                          Float orderId);

    int updateOperation(String id,
                              String operationKey,
                              String operationName,
                              String comment,
                              Float orderId);

    int deleteOperationById(String id);
}
